package com.wx.jpa.entity;

import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.util.Date;

/**
 * @ClassName UserInfo
 * @Author wx
 * @Description 用户信息
 * @Date 2018-12-26-20:53
 */
@Entity
@Component
@Table(name = "user_info")
public class UserInfo {
    /**
     * ID
     */
    private  Long id;
    /**
     * 姓名
     */
    private  String name;
    /**
     * 工号
     */
    private  String jobNumber;
    /**
     * 创建时间
     */
    private Date createTime;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name="name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name="job_number")
    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }
    @Column(name="create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
